#define _CRT_SECURE_NO_WARNINGS 1

#include"Queue.h"

void test()
{
	Queue QT;
	QueueInit(&QT);
	QueuePush(&QT, 1);
	QueuePush(&QT, 2);
	QueuePush(&QT, 3);
	QueuePush(&QT, 4);
	QueuePush(&QT, 5);
	int ret = QueueSize(&QT);
	printf("%d\n", ret);
	while (!QueueEmpty(&QT))
	{
		printf("%d ", QueueFront(&QT));
		QueuePop(&QT);
	}
	printf("\n");
	ret = QueueSize(&QT);
	printf("%d\n", ret);

	QueueDestroy(&QT);
}

void test1()
{
	MyStack* obj = myStackCreate();
	myStackPush(obj, 1);
	int ret = myStackPop(obj);
	printf("%d \n", ret);
	if (myStackEmpty(obj))
		printf("ture");
	else
		printf("false");
	myStackFree(obj);
}

int main()
{
	test1();
	return 0;
}